﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Show.aspx.cs" Inherits="Show" %>
<%@ Import Namespace="Shopping.Model" %>
<%@ Import Namespace="Shopping.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <title><%=goodsInfo.BaseInfo.GoodsName %>-<!--#include file="~/Config/ShoppingName.txt" --></title>
     <link href="/css/base.css" rel="stylesheet" type="text/css" />
     <link href="/css/home.css" rel="stylesheet" type="text/css" />
     <link href="/css/patch.css" rel="stylesheet" type="text/css" />
     <!--#include file="~/Public/commonjs.shtml" -->
     <script type="text/javascript" src="/JsBase/jquery.jqzoom.js"></script>
     <style   type="text/css">
       img.jqzoom{ cursor:hand; position:relative;cursor:url(/images/zoom.cur),move;}
       div.zoomdiv {
         z-index : 100;
         position: absolute;
         top:0px;
         left:0px;
         width: 200px;
         height : 200px;
         background: #ffffff;
         border:1px solid #CCCCCC;
         display:none;
         text-align: center; 
         overflow: hidden;
      }
     </style>
     <script language="javascript" type="text/javascript">
         var packUnitId = <%=goodsInfo.BaseInfo.PackUnitID %>;
         $(function () {
             $("img.jqzoom").jqueryzoom();
         });
    </script>
</head>
<body style="overflow-x: hidden;">
    <!--#include file="~/Public/top.shtml" -->
     <!--main开始-->
     <div class="main w960 cb ">
        <!--#include file="/Public/onlineqq.shtml" -->
       <div class="block1 mt10">
         <!--left-->
         <div class="m_left">
         <div class="cb mb10">
           <h2><%=parentCategoryName %></h2>
           <ul class="left_bar">
                  <%
                 if (categoryMenu != null)
                 {
                     foreach (Categories c in categoryMenu)
                     {
              %>
             <li class="sel"><a href="<%=bllUrl.GetGoodsListUrl(c.ParentID,c.CategoryID) %>"><%=c.CategoryName %></a></li>
             <%}
                 } %>
           </ul>
           <div class="left_bar_bottom"></div>
           </div>
          
           <div class="cb mb10">
           <div class="left_bar_hot"></div>
           <div class="left_hot">
             <div class="white_bg">
               <!--#include file="~/AutoGenerate/list-hotgoods-words.shtml" -->
             </div>
             
             <div class="left_hot_list">
              <!--#include file="~/AutoGenerate/list-hotgoods-pic.shtml" -->
             
             </div>
           </div>
           
           <div class="left_bar_bottom"></div>
           </div>
         </div>
         <!--left end-->
         <!--right-->
         <div class="m_right ft">
            <p class="tar" style=" text-align:left">
             &nbsp; <img src="/images/icon1.gif" /> 当前位置： <a href="/index.aspx">首页</a> >  
             
             <%
                 if (categoryNav != null)
                 {
                     int max = categoryNav.Count;
                     int FCategoryID = 0;
                     int SCategoryID = 0;
                     int TCategoryID = 0;
                     for (int i = max - 1; i >= 0; --i)
                     {
                        
                         Categories c = categoryNav[i];
                         if (c.Depth == 0)
                         {
                             FCategoryID = c.CategoryID;
                             Response.Write(string.Format(" <a href=\"{0}\" >", bllUrl.GetGoodsListUrl(FCategoryID)));
                         }
                         else if (c.Depth == 1)
                         {
                             SCategoryID = c.CategoryID;
                             Response.Write(string.Format(" <a href=\"{0}\" >", bllUrl.GetGoodsListUrl(FCategoryID,SCategoryID)));
                         }
                         else if (c.Depth == 2)
                         {
                             TCategoryID = c.CategoryID;
                             Response.Write(string.Format(" <a href=\"{0}\" >", bllUrl.GetGoodsListUrl(FCategoryID, SCategoryID,TCategoryID)));
                         }
                         Response.Write(categoryNav[i].CategoryName);
                         Response.Write("</a>  >");
                     }
                 }   
             %>
               <%=goodsInfo.BaseInfo.GoodsName %>
           </p>
            <!--搜索范围-->
          <div class="big_tu">
               <div class="big_tu_pic" >
                 <a href="javascript:void(0);" title="">
                 <img id="MainGoodsImg" src="<%=goodsInfo.MainPicture.MiddlePictureUrl %>"  class="jqzoom" alt="<%=goodsInfo.MainPicture.OriginalPictureUrl %>" height="272" />
                 </a>
                 <ul>
                 <%
                     for (int i = 0; i < goodsInfo.Pictures.Count && i<6; ++i)
                     {
                  %>
                 <li><a href="javascript:void(0);"  onmouseover="ChangeGoodsImg(<%=i %>);"; ><img id="GoodsImg<%=i %>" src="<%=goodsInfo.Pictures[i].SuperSmallPictureUrl %>" data="<%=goodsInfo.Pictures[i].MiddlePictureUrl %>" alt="<%=goodsInfo.Pictures[i].OriginalPictureUrl %>" width="52" height="52" /></a></li>
                 <%} %>
               </ul>
              </div>
              <div class="big_text">
                <h2 class="f16 lh23"><%=goodsInfo.BaseInfo.GoodsName %>
                 <% if (!string.IsNullOrEmpty(goodsInfo.BaseInfo.Promotions))
                    { %>
                (<%=goodsInfo.BaseInfo.Promotions%>)
                 <%} %>

                 <%
                     if (goodsInfo.BaseInfo.GiveScores > 0)
                     {
                         Response.Write("<span style=\"color:red;\">赠送" + goodsInfo.BaseInfo.GiveScores + "积分</span>");
                     }    
                  %>

                </h2>
                <div>
                  <ul class="click_price">
                    <li class="w80"><font>&middot;</font>点客价</li>
                     <li>： <b class="red_400"><%=Utility.FormatMoneyStr(goodsInfo.BaseInfo.SalePrice) %></b></li>
                  </ul>
                  <ul class="click_price">
                    <li class="w80"><font>&middot;</font>商品编号</li>
                     <li>：<span> <%=goodsInfo.BaseInfo.GoodsID%></span></li>
                  </ul>
                  <ul class="click_price">
                    <li class="w80"><font>&middot;</font>商品产地</li>
                     <li>：<span> <%=goodsInfo.PlaceName%></span></li>
                  </ul>
                 
                  <ul class="click_price">
                    <li class="w80"><font>&middot;</font>商品评价</li>
                    <li class="star">：<b class="four"></b><!--(已有人评论)--></li>
                  </ul>
                </div>
                <div class="my_buy">
                  <ul class="click_price">
                    <li class="w80">选择包装</li>
                    <li class="package">
                    <%
                        string selectPack = "";
                        for (int i = 0; i < goodsInfo.OnSales.Count; ++i)
                        {
                            Response.Write("<a href=\"javascript:void(0);\" ");
                            if (PackID == goodsInfo.OnSales[i].OnSale.PackUnitID)
                            {
                                selectPack = goodsInfo.OnSales[i].PackUnitName;
                                Response.Write("class=\"package_on\"");
                            }
                            Response.Write(">");
                            Response.Write(goodsInfo.OnSales[i].PackUnitName);
                            Response.Write("</a>");
                        }
                    %>
                    </li>
                  </ul>
                  <ul class="click_price">
                    <li class="w80">我要买</li>
                    <li class="add"><a href="javascript:void(0);" onclick="SubQuantity('txtQuantity');">-</a> <input type="text" id="txtQuantity" value="1" class="w50 tc"/> <a href="javascript:void(0);" onclick="AddQuantity('txtQuantity');">+</a></li>
                  </ul>
                  <p class="fb red cb pt5">已选择包装“<span id="spSelectPack"><%=selectPack%></span>”</p>
                </div>
                <div >
                <a href="javascript:void(0);" onclick="AddToFavorite(<%=goodsInfo.BaseInfo.GoodsID %>);" class="btn_shopping1"></a>
                <a href="javascript:void(0);" onclick="AddCarts(<%=goodsInfo.BaseInfo.GoodsID %>,packUnitId,$('#txtQuantity').val());return false;" class="btn_shopping2"></a>
                </div>
              </div>
              
           </div>
           <div  class="buy_groups" style="display:none;">
             <div class="groups_top"></div>
             <div class="groups_main">
              <ul class="square1">
                 <li><a href="#"></a></li>
               </ul>
               <ul>
                 <li class="mask_pic2">
                 <a href="#">
                   <img src="/images/p_food_bg2.gif" class="mask_pic"/>
                   <img src="/images/p_tu4.jpg" class="mask_pic3" />
                 </a>
                 </li>
                 <li>
                 <a href="#">零利润进口食品TIP白巧克力面包藏祸30克</a>
                 </li>
                 <li class="red_400 fb">30.00元</li>
               </ul>
               <ul class="add_icon">
                 <li></li>
               </ul>
               <ul>
                 <li class="mask_pic2">
                 <a href="#">
                   <img src="/images/p_food_bg2.gif" class="mask_pic"/>
                   <img src="/images/p_tu5.jpg" class="mask_pic3" />
                 </a>
                 </li>
                 <li>
                 <a href="#">零利润进口食品TIP白巧克力面包藏祸30克</a>
                 </li>
                 <li class="red_400 fb">30.00元</li>
               </ul>
               <ul class="add_icon">
                 <li></li>
               </ul>
               <ul>
                 <li class="mask_pic2">
                 <a href="#">
                   <img src="/images/p_food_bg2.gif" class="mask_pic"/>
                   <img src="/images/space_pic3.jpg" class="mask_pic3" />
                 </a>
                 </li>
                 
               </ul>
               <ul class="square2">
                 <li><a href="#"></a></li>
               </ul>
               <ul class="f14 tl">
                 <li class="fb pb10 pt20">
                   购买最佳组合
                 </li>
                 <li class="pb3">
                 <span class="hui2">总点客价：</span><span class="red fb">￥575.90</span>
                 </li>
                 <li>总定价&nbsp;&nbsp;：<span class="line_th">323.00</span></li>
                 <li class="btn_grounps"><a href="#"></a></li>
               </ul>
             </div>
             <div class="groups_bottom"></div>
             
           
           </div>
            
            <!--休闲食品-->
            <div class="food_x">
              <div class="food_x_top">
                <ul class="tab">
                  <li><a href="javascript:void(0);" onclick="ChangeGoodsNav(0)" id="GoodsNav0" class="on_select">商品详情</a></li>
                  <li><a href="javascript:void(0);" onclick="ChangeGoodsNav(1)" id="GoodsNav1" >规格参数</a></li>
                  <li><a href="javascript:void(0);" onclick="ChangeGoodsNav(2)" id="GoodsNav2" >包装清单</a></li>
                  <li><a href="javascript:void(0);" onclick="ChangeGoodsNav(3)" id="GoodsNav3" >售后服务</a></li>
                </ul>
              </div>
              <!--tab1-->
              <div class="food_x_main" id="divOfGoodsDesc0">
                <div class="goods_info">
                     <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="9%">商品名称：</td>
                        <td width="57%"><%=goodsInfo.BaseInfo.GoodsName %></td>
                        <td width="9%">生产商家：</td>
                        <td width="25%"><%=goodsInfo.BrandName %></td>
                      </tr>
                      <tr>
                        <td>商品产地：</td>
                        <td><%=goodsInfo.PlaceName %></td>
                        <td>生产毛重：</td>
                        <td><%=Utility.Cast2int(goodsInfo.BaseInfo.Weight) %>g</td>
                      </tr>
                      <tr>
                        <td>上架时间：</td>
                        <td><%=goodsInfo.BaseInfo.OnSaleDate.HasValue?goodsInfo.BaseInfo.OnSaleDate.Value.ToString("yyyy-MM-dd"):"" %></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
                </div> 
                <h2 class="goods_info_t">
                   商品信息 <span>Product Information</span>
                </h2>
                <div class="tc" style="text-align:left; margin-top:-50px; padding:5px;">
                    <%=goodsInfo.BaseInfo.Description %>
                </div>
              </div>
              
              <!--tab2-->
              <div class="food_x_main"  style="display:none;" id="divOfGoodsDesc1">
                <div class="goods_info">
                     <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="9%">产品类别：</td>
                        <td width="57%"><%=goodsInfo.CategoryName %></td>
                        <td width="9%">品牌：</td>
                        <td width="25%"><%=goodsInfo.BrandName %></td>
                      </tr>
                      <tr>
                        <td>商品重量：</td>
                        <td><%=Utility.Cast2int(goodsInfo.BaseInfo.Weight) %>g</td>
                        <td>商品产地：</td>
                        <td><%=goodsInfo.PlaceName %></td>
                      </tr>
                      <tr>
                        <td>包装类型：</td>
                        <td><%=goodsInfo.PackUnit %></td>
                        <td>商品单位:</td>
                        <td><%=goodsInfo.GoodsUnit %></td>
                      </tr>
                      <tr>
                        <td>市场价：</td>
                        <td><%=Utility.FormatMoneyStr(goodsInfo.BaseInfo.MarketPrice) %></td>
                        <td>保质期:</td>
                        <td><%=goodsInfo.BaseInfo.ShelflifeDays %>天</td>
                      </tr>
                     
                    </table>
                </div> 
                 
              </div>
              
              <!--tab3-->
              <div class="food_x_main"  style="display:none;"  id="divOfGoodsDesc2">
               
                <div class="tc" style="text-align:left; padding:5px; ">
                  &nbsp;<%=goodsInfo.BaseInfo.Package %>
                
                </div>
				
                 
              </div>
              
              <!--tab4-->
              <div class="food_x_main" style="display:none;" id="divOfGoodsDesc3">
               
                <div class="tc" style="text-align:left; padding:5px; ">
                   <%=goodsInfo.BaseInfo.AfterService %>

                   <br />
                    服务承诺：<br />
                点客商城向您保证所售商品均为正品行货，自带机打发票，与商品一起寄送。<br />
                点客商城还为您提供具有竞争力的商品价格和运费政策，请您放心购买！
                
                </div>
				
                 
              </div>
              <!---tab结束->
            </div>
         </div> 
         <!--right end-->
       </div>
        
     <!--new product-->
     <!--new product end-->
         <!--六个块-->
         <!--休闲食品-->
         <!---块结束-->
        
         
     </div>
     <!--main结束-->
     <div class="share cb w960">
        <div>
          <!--#include file="~/AutoGenerate/AllPage-Bottom-Banner.htm" -->
        </div>
          <!--#include file="~/Public/bottom-shopHelper.shtml" -->
     </div>
    
    <!--#include file="~/Public/bottom.shtml" -->


</body>
</html>
